package io.coderyeah.ymcc.property;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.stereotype.Component;

@Data
@Component
//自动从配置读取，按照前缀过滤出配置项，同名匹配给对象的属性
@ConfigurationProperties(prefix = "sms.verifycode")
@RefreshScope
public class SMSVerifyCodeProperties {
    //发送间隔
    private int interval;
    //验证码长度
    private int length;
    //过期时间
    private Long expire;
}